package com.aaa.day1109.deno02;

/**
 * @author ${崔灿}
 * @date 2022/11/09 17:56
 **/

public class Test {
    public static void main(String[] args) {
        //ProxyFactory proxyFactory = new ProxyFactory(new FangdDong());
        ProxyFactory proxyFactory1 = new ProxyFactory(new Haha());
        //获取代理对象
        //FangdDong instance = (FangdDong) proxyFactory.getInstance();
        Haha instance1 = (Haha) proxyFactory1.getInstance();
        //instance.chuzu();
        instance1.add(1,2);

    }
}
